home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GIFLIB12.ARJ / GETARG.H < prev    next >
C/C++ Source or Header  |  1990-10-17  |  1KB  |  29 lines

  1. /***************************************************************************
  2. * Error    numbers    as returned by GAGetArg    routine:               *
  3. *                                       *
  4. *                     Gershon Elber         Mar 88       *
  5. ****************************************************************************
  6. * History:                                   *
  7. * 11 Mar 88 - Version 1.0 by Gershon Elber.                   *
  8. ***************************************************************************/
  9.  
  10. #ifndef GET_ARG_H
  11. #define GET_ARG_H
  12.  
  13. #define    CMD_ERR_NotAnOpt   1                   /* None Option found. */
  14. #define    CMD_ERR_NoSuchOpt  2              /* Undefined Option Found. */
  15. #define    CMD_ERR_WildEmpty  3             /* Empty input for !*? seq. */
  16. #define    CMD_ERR_NumRead       4            /* Failed on reading number. */
  17. #define    CMD_ERR_AllSatis   5           /* Fail to satisfy (must-'!') option. */
  18.  
  19. #ifdef USE_VARARGS
  20. int GAGetArgs(int va_alist, ...);
  21. #else
  22. int GAGetArgs(int argc, char **argv, char *CtrlStr, ...);
  23. #endif /* USE_VARARGS */
  24.  
  25. void GAPrintErrMsg(int Error);
  26. void GAPrintHowTo(char *CtrlStr);
  27.  
  28. #endif /* GET_ARG_H */
  29.